﻿using Common.Device.DeviceDb;
using Common.Device.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Device.Models
{
    /// <summary>
    /// 测试指令
    /// </summary>
    public class Order
    {
        /// <summary>
        /// 仪器名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 测试模式
        /// </summary>
        public string temp { get; set; }
        /// <summary>
        /// 测试json参数
        /// </summary>
        public string deviceModel { get; set; }
        /// <summary>
        /// 结果范围
        /// </summary>
        public string range { get; set; } = "无";
        /// <summary>
        /// 第二项结果范围
        /// </summary>
        public string range1 { get; set; } = "无";
        /// <summary>
        /// 克隆
        /// </summary>
        /// <returns></returns>
        public Order Clone()
        {
            return new Order() 
            {
                name=this.name,
                temp =this.temp,
                deviceModel=this.deviceModel,
                range=this.range,
            };
        }
    }
}
